All styling currently happens on the ScrollView child, which
means that instead of a scrollbar inside the dialog to move
the content, we have a scrollbar next to the dialog that moves
the dialog as a whole.
Fix this by simply moving the style classes to the up-most parent.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3414>
class ObjInspector extends St.ScrollView {
_init(lookingGlass) {
super._init({
+ name: 'LookingGlassPropertyInspector',
+ style_class: 'lg-dialog',
pivot_point: new Graphene.Point({x: 0.5, y: 0.5}),
});
this._parentList = [];
this._container = new St.BoxLayout({
- name: 'LookingGlassPropertyInspector',
- style_class: 'lg-dialog',
vertical: true,
x_expand: true,
y_expand: true,